<?php
class modelo extends CI_Model
{
    function __construct()
    {
        parent::__construct();
    }
    function consulta($nickname, $clave)
    {
        $this->db->select('*');
        $this->db->where('nickname',$nickname);
        $this->db->where('clave',$clave);
        return $this->db->get('logins');
    }
}
?>
